package pl.elka.pszt.controller.handler;

import pl.elka.pszt.controller.Controller;
import pl.elka.pszt.controller.event.BaseEvent;
import pl.elka.pszt.controller.event.LoadKnowledgeEvent;

/**
 * 
 * @author Andrzej Makarewicz
 * 
 */
public class LoadKnowledgeHandler extends BaseHandler{
	
	public LoadKnowledgeHandler(Controller controller) {
		super(controller);
	}
	
	public void handleEvent(BaseEvent event) {
		LoadKnowledgeEvent loadEvent = (LoadKnowledgeEvent) event;
		controller.getModel().loadKnowledge(loadEvent.getFile());
	}
	
}
